package com.hongye.search.controller;

import com.hongye.search.service.RequirementService;
import com.hongye.search.vo.RequirementSearchParam;
import com.hongye.search.vo.RequirementSearchResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lins
 * @date 2021/10/21 20:31
 */
@RestController
@RequestMapping("/requirement")
public class RequirementController {


    @Autowired
    RequirementService requirementService;

    @RequestMapping("search")
    public RequirementSearchResult searchRequirement(@RequestBody RequirementSearchParam param){
        return requirementService.searchRequirement(param);
    }
}
